<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSpLogosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sp_logos', function (Blueprint $table) {
            $table->integer('sp_id')->default(0)->nullable()->unsigned()->comment('服务商Id');
            $table->increments('id');
            $table->string('href', 191)->nullable()->comment('图片存放地址');
            $table->string('logo_type', 191)->nullable()->comment('logo类型');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sp_logos');
    }
}
